inspector: Collect statistics for unclassable types
authorBenjamin Otte <otte@redhat.com>
Tue, 1 Nov 2016 17:31:13 +0000 (18:31 +0100)
committerBenjamin Otte <otte@redhat.com>
Tue, 1 Nov 2016 17:34:40 +0000 (18:34 +0100)
I want to know how many GskRenderNodes I have!

gtk/inspector/statistics.c

index 42b315c49d0ca09e3c6fe39308077a1e438189db..5baf700549b41399ba840397922fb6d2569d0e60 100644 (file)
@@ -130,14 +130,9 @@ update_type_counts (gpointer data)
 {
   GtkInspectorStatistics *sl = data;
   GType type;
-  gpointer class;
 
   for (type = G_TYPE_INTERFACE; type <= G_TYPE_FUNDAMENTAL_MAX; type += (1 << G_TYPE_FUNDAMENTAL_SHIFT))
     {
-      class = g_type_class_peek (type);
-      if (class == NULL)
-        continue;
-
       if (!G_TYPE_IS_INSTANTIATABLE (type))
         continue;